package com.len.test.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author lixin40
 */
@Controller
@RequestMapping("/")
public class IndexController {
    @GetMapping("")
    public String index(Model model){
        String message = "Hello!";
        model.addAttribute("message",message);
        return "index";
    }
}
